package com.kaba.xtzhgl.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaba.bean.SysRole;
import com.kaba.xtzhgl.mapper.SysRoleMapper;
import com.kaba.xtzhgl.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lvmengjie
 * @Date 2021/3/12
 * @Description TODO
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
    @Override
    public List<SysRole> zhcx(SysRole sysRole) {
        return this.baseMapper.zhcx(sysRole);
    }

    @Override
    public List<SysRole> queryRole() {
        return this.baseMapper.queryRole();
    }

    @Override
    public void saveRole(SysRole sysRole) {
        this.baseMapper.saveRole(sysRole);
    }

    @Override
    public void saveRoleMenu(Integer roleId, Integer menuId) {
        this.baseMapper.saveRoleMenu(roleId,menuId);
    }

    @Override
    public void updateRole(SysRole sysRole) {
        this.baseMapper.updateRole(sysRole);
    }

    @Override
    public List<SysRole> querysByname(String username) {
        return this.baseMapper.querysByname(username);
    }


}
